package com.llh.bean;

import java.io.Serializable;
import java.util.Date;

public class StockExport implements Serializable {
    private String s_code;

    private Date open_day;

    private String s_name;

    private String open_type;

    private String status;

    private static final long serialVersionUID = 1L;

    public String getS_code() {
        return s_code;
    }

    public void setS_code(String s_code) {
        this.s_code = s_code == null ? null : s_code.trim();
    }

    public Date getOpen_day() {
        return open_day;
    }

    public void setOpen_day(Date open_day) {
        this.open_day = open_day;
    }

    public String getS_name() {
        return s_name;
    }

    public void setS_name(String s_name) {
        this.s_name = s_name == null ? null : s_name.trim();
    }

    public String getOpen_type() {
        return open_type;
    }

    public void setOpen_type(String open_type) {
        this.open_type = open_type == null ? null : open_type.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StockExport other = (StockExport) that;
        return (this.getS_code() == null ? other.getS_code() == null : this.getS_code().equals(other.getS_code()))
            && (this.getOpen_day() == null ? other.getOpen_day() == null : this.getOpen_day().equals(other.getOpen_day()))
            && (this.getS_name() == null ? other.getS_name() == null : this.getS_name().equals(other.getS_name()))
            && (this.getOpen_type() == null ? other.getOpen_type() == null : this.getOpen_type().equals(other.getOpen_type()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getS_code() == null) ? 0 : getS_code().hashCode());
        result = prime * result + ((getOpen_day() == null) ? 0 : getOpen_day().hashCode());
        result = prime * result + ((getS_name() == null) ? 0 : getS_name().hashCode());
        result = prime * result + ((getOpen_type() == null) ? 0 : getOpen_type().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", s_code=").append(s_code);
        sb.append(", open_day=").append(open_day);
        sb.append(", s_name=").append(s_name);
        sb.append(", open_type=").append(open_type);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}